package com.aotain.common;

public class GlobalLock {
	
	private static GlobalLock instance = null;
	
	private Integer number = 0;
	
	public static GlobalLock getInscance() {
		if(instance==null)
			instance = new GlobalLock();
		return instance;
	}
	
	
	public Integer GetNumber() {
		synchronized(number) {
			number ++;
		}
		return number;
	}

}

    